<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class UpdateParticipantTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::table('participant', function (Blueprint $table) {
            $table->integer('is_push')->default(0)->comment('是否推送1.已推送 ')->after('form_instance_id');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('participant', function (Blueprint $table) {
            $table->dropColumn('is_push');
        });
    }
};
